package com.bs.product.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.bs.product.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author lukang
 * @since 2022-11-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tbl_product")
@ApiModel("商品管理对象")
public class Product extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("分类id")
    private Long id;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("商品管理价格")
    private BigDecimal price;
    @ApiModelProperty("商品分类管理id")
    private Long typeid;

    private String guige;

    private Integer sellStatus;

    private String pic;

    private String detail;
    @ApiModelProperty("排序号")
    private Integer sort;

    //关联商品分类对象
    @TableField(exist = false)
    private Type type;

}
